
#pragma once

#include "HrkObject.h"

#define FT_UNKNOWN -1
#define FT_TRILIST 0
#define FT_TRISTRIP 1
#define FT_TRIFAN 2

class CHrkIndexBuffer
{
public:
	CHrkIndexBuffer(){ m_faceType = FT_UNKNOWN;m_faceCount = 0; }
	CHrkIndexBuffer(int type){ m_faceType = type;m_faceCount = 0; }
public:	
	STLvector<unsigned int> m_faceIndices;
	int m_faceCount;
	int m_faceType;
};

class CHrkMesh;
class GLmaterial;

class CHrkSubMesh:public CHrkObject
{
	DECLARE_DYNCREATE( CHrkSubMesh ) 
public:
	STLvector< CHrkIndexBuffer* > m_indexBuffers;
public:
	CHrkSubMesh();
	~CHrkSubMesh();

	GLmaterial* m_pMaterial;
	CHrkMesh* m_pMesh;
};